import axios from './http'

export default{
    /*获取广告位列表*/
    getAdvertisementSpaceList() {
        return axios.get('/getAdvertisementSpaceList')
    },
    /*添加广告位*/
    advertisementSpace(data) {
        return axios.post('/advertisementSpace', data)
    },
    /*删除广告位*/
    delAdvertisementSpace(data) {
        return axios.post('/delAdvertisementSpace', data)
    },
    /*获取广告列表*/
    getAdList(id) {
        return axios.get('/getAdList?id='+id)
    },
    /*获取广告详情*/
    getAdInfo(data) {
        return axios.get('/getAdInfo?id='+data)
    },

	/*添加/修改广告*/
    adOperation(data) {
        return axios.post('/adOperation', data)
    },
	/*删除广告*/
    delAd(data) {
        return axios.post('/delAd', data)
    },
	// 获取配置信息
	getSystemConfig(type='basics') {
	    return axios.get('/getSystemConfig?requestType='+type)
	},
	// 保存配置参数
	systemConfig(data, type='basics') {
	    return axios.post('/systemConfig?requestType='+type, data)
	},
	// 获取上传地址
	getUploadPath() {
	    return axios.get('/getUploadPath')
	},
	
	// 获取VIP列表
	getVipList() {
	    return axios.get('/getVipList')
	},
	// 添加/修改VIP
	vip(data) {
	    return axios.post('/vip', data)
	},
	// 删除VIP
	delVip(data) {
	    return axios.post('/delVip', data)
	},
	
}

